package com.lgkj.ui;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ListView;
import android.widget.TextView;

import com.lgkj.R;
import com.lgkj.adapter.HomeShopAdapter;
import com.lgkj.adapter.ShopTypeAdapter;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/6/20 0020.
 */

public class ShopPlayActivity extends BaseActivity {
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.rc_title)
    RecyclerView rcTitle;
    @BindView(R.id.lv_item)
    ListView lvItem;

    @Override
    public int getLayoutId() {
        return R.layout.activity_shop_play;
    }

    @Override
    public void initView() {
        setTitle("吃喝玩乐购");
        lvItem.setAdapter(new HomeShopAdapter(ShopPlayActivity.this));
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(ShopPlayActivity.this);
        linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
        rcTitle.setLayoutManager(linearLayoutManager);
        rcTitle.setAdapter(new ShopTypeAdapter(ShopPlayActivity.this));
    }

    @Override
    public void initData() {

    }

}
